﻿Public Class exitForm

    Private Sub cancelBtn_Click(sender As System.Object, e As System.EventArgs) Handles cancelBtn.Click
        Me.Hide()
    End Sub

    Private Sub exitForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        logoPic.Location = New System.Drawing.Point(((exitPanel.Width / 2) - (logoPic.Width / 2)), 3)
        exitPanel.Location = New System.Drawing.Point(((Me.Width / 2) - (exitPanel.Width / 2)), ((Me.Height / 2) - (exitPanel.Height / 2)))
    End Sub

    Private Sub proceedBtn_Click(sender As System.Object, e As System.EventArgs) Handles proceedBtn.Click
        If (userNameTxt.Text = "Admin" And passwordTxt.Text = "CP2013") Then
            mainForm.Close()
        Else
            MessageBox.Show("Invalid username or passowrd!")
        End If
    End Sub
End Class